using UnityEditor;
using UnityEngine;

namespace Gameplay.PVE.Editor
{
    [CustomEditor( typeof(IKTest))]
    [CanEditMultipleObjects]
    public class IKTestEditor : UnityEditor.Editor
    {
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (GUILayout.Button("Attack"))
            {
                (target as IKTest).Play("MoveAttack");
            }

            /*if (GUILayout.Button("Hit"))
            {
                (target as IKTest).Play("Hit");
            }*/
            
            if (GUILayout.Button("Walk"))
            {
                (target as IKTest).Walk();
            }
            if (GUILayout.Button("Run"))
            {
                (target as IKTest).Run();
            }
            if (GUILayout.Button("SkillStart"))
            {
                (target as IKTest).SkillStart();
            }
        }
    }
}